# Replication Material for "Coalition-directed Voting under Uncertainty"

The replication material allows for the reproduction of all figures and tables in both the main text and the supplementary material.

## Setup Script

For replication, please first run `Setup_00_Packages.R` to install all required packages.

## Observational Study

To replicate the observational study, please run `ObsStudy_01_00_overview_all.R` and `ObsStudy_01_00_overview_all_pid.R`. These scripts will reproduce all tables and figures from the main text and the supplementary material.

### Files:

- `ObsStudy_00_data_*`: Raw survey data from the election studies.
- `ObsStudy_01_00_overview_all.R`: Code to reproduce the analysis and results in tables and figures (without partisanship control).
- `ObsStudy_01_00_overview_all_pid.R`: Code to reproduce the robustness check with  partisanship control.
- `ObsStudy_01_00_overview_NZSweden.R`: Code to reproduce the analysis and results in tables and figures for own surveys.
- `ObsStudy_01_01_*`: Code to reproduce the analysis for individual studies.

## Experimental Study

To replicate the experimental study, please run `ExpStudy_01_analysis.R`. This script will reproduce all tables and figures from the main text and the supplementary material.

### Files:

- `ExpStudy_00_data`: Contains the raw data for the experimental study.
- `ExpStudy_01_analysis.R`: Code to reproduce the analysis and generate the results in tables and figures.

